<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>管理员</title>
</head>
<body       background="11.png">
<center>试卷管理</center>
<h3 align="right"><a href="../admin/index.php?c=index&m=index">返回</a></h3>
<h2 align="left"><a href="index.php?c=index&m=addPaper">添加试卷</a></h2>
<!-- 通过试卷名搜索-->
<form method="post" action="index.php?c=index&m=searchpaper" enctype="multipart/form-data">
<input type="search" name="pname">
<input type="submit" value="搜索">
</form>
<table align="center" border="1">
<tr>
	<th>卷纸序号</th>
	<th>科目</th>
	<th>创建时间</th>
	<th>总答题时间</th>
	<th>操作</th>
</tr>
<?php 
	foreach($data['paper'] as $row) 
	{
		echo '<tr>';
		echo '<td>'.$row['pid'].'</td>';
		echo '<td>'.$row['pname'].'</td>';
		echo '<td>'.$row['createtime'].'</td>';
		echo '<td>'.$row['totaltime'].'</td>';
		echo '<td><a href="index.php?c=index&m=paperEditForm&pid='.$row['pid'].'">修改</a>|<a href="index.php?c=index&m=paperDelete&pid='.$row['pid'].'"onClick="return confirm(\'确定要删除吗？\');">删除</a></td>';
		echo '</tr>';
	}
	echo '</table>'
 ?>
</body>
</html>